package org.dromara.wx.mapper;

import org.dromara.wx.domain.WxUser;
import org.dromara.wx.domain.bo.WxUserBo;
import org.dromara.wx.domain.query.WxUserQuery;
import org.dromara.wx.domain.vo.WxUserVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 微信用户Mapper接口
 *
 * @author yf
 * @date 2024-06-05
 */
public interface WxUserMapper extends BaseMapperPlus<WxUser, WxUserVo> {

    /**
     * 查询微信用户列表
     *
     * @param query 查询对象
     * @return {@link WxUserVo}
     */
    List<WxUserVo> queryList(WxUserQuery query);

    /**
     * 查询微信用户
     * @param phoneNumber
     * @return
     */
    WxUserVo selectWxUserWithRolesByphoneNumber(String phoneNumber);
}
